package com.lee.common.utils;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lishuo
 * Date: 2023-09-27
 * Time: 16:52
 */

import java.util.UUID;

/**
 * 生成UUID工具类
 */
public class UUIDUtil {

    /**
     * 生成36位原始UUID
     * @return 36位原始UUID
     */
    public static String UUID_36() {
        return UUID.randomUUID().toString();
    }

    /**
     * 生成32位UUID(取出 - )
     * @return 32位UUID
     */
    public static String UUID_32() {
        return UUID.randomUUID().toString().replace("-","");
    }
}
